package com.game.common.constant;

import java.util.*;

/**
 * Constant
 *
 * @author wenbin
 * @version V1.0
 * @date 2020年3月18日
 */
public class Constant {
    public static Map<String,String> configs = new HashMap<>();
    public static Map<String,Integer> provinceName = new LinkedHashMap<String,Integer>(){
        {
            put("北京市",110000);
            put("天津市",120000);
            put("河北省",130000);
            put("山西省",140000);
            put("辽宁省",210000);
            put("吉林省",220000);
            put("黑龙江省",230000);
            put("上海市",310000);
            put("江苏省",320000);
            put("浙江省",330000);
            put("安徽省",340000);
            put("福建省",350000);
            put("江西省",360000);
            put("山东省",370000);
            put("河南省",410000);
            put("湖北省",420000);
            put("湖南省",430000);
            put("广东省",440000);
            put("广西壮族自治区",450000);
            put("海南省",460000);
            put("重庆市",500000);
            put("四川省",510000);
            put("贵州省",520000);
            put("云南省",530000);
            put("陕西省",610000);
            put("甘肃省",620000);
            put("青海省",630000);
        }
    };

    /**
     * redis的token相关
     */
    public static final String ACCESS_TOKEN = "authorization";
    public static final String PERMISSIONS_KEY = "permissions-key";
    public static final String USERID_KEY = "userid-key";
    public static final String SESSION_KEY = "session-key";

    public static final String USERNAME_KEY = "username-key";
    public static final String EXPIRE_TIME = "expire-time";

    public static final String ROLES_KEY = "roles-key";

    /**
     * 未删除值
     */
    public static final Integer DATA_NOT_DELETED = 1;

    /**
     * 数据库类型
     */
    public static final String DB_TYPE_MYSQL = "mysql";
    public static final String DB_TYPE_ORACLE = "oracle";
    public static final String DB_TYPE_SQL_SERVER = "sqlServer";

    /**
     * 定时任务状态
     */
    public static final Integer SCHEDULER_STATUS_NORMAL = 0;
    public static final Integer SCHEDULER_STATUS_PAUSE = 1;

    /**
     * 数据范围类型 1:所有/2:自定义/3:本部门及一下/4:仅本部门/5:自己
     */
    public static final Integer DATA_SCOPE_ALL = 1;
    public static final Integer DATA_SCOPE_CUSTOM = 2;
    public static final Integer DATA_SCOPE_DEPT_AND_CHILD = 3;
    public static final Integer DATA_SCOPE_DEPT = 4;
    public static final Integer DATA_SCOPE_DEPT_SELF = 5;
}
